package com.cskaoyan.javase.network._2tcp._v4;

import java.io.Serializable;

/**
 * 可序列化操作的Student类
 * @since 16:23
 * @author wuguidong@cskaoyan.onaliyun.com
 */

public class Student implements Serializable {
    private static final long serialVersionUID = 6960936157740510829L;
    private int age;
    private String name;

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Student{");
        sb.append("age=").append(age);
        sb.append(", name='").append(name).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }
}